package com.tul.exercise.base.innerclass.chapter10_8;

/**
 * @Description 《java编程思想》10.8
 *  闭包
 **/
public class Caller {
    private Incrementable callbackRefernce;

    Caller(Incrementable cbh) {
        callbackRefernce = cbh;
    }

    void go() {
        callbackRefernce.increment();
    }
}
